﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using UniMana.Utils.Data;

namespace UniMana.Utils.LoginInfo
{
    public static class GblLoginInfo
    {
        public static string strUserName = "";
        public static string strPassWord = "";
        public static Guid sysLoginUserKey;
        public static Guid sysLoginPersionalKey;
        public static int iDepartmentKey = 0;
        public static List<int> iListDepartment = new List<int>();

        public static IQueryable iqrGetDepartment
        {
            set
            {
                DataTable dt = value.ToDataTable();
                while (dt.Rows.Count > 0)
                {
                    iListDepartment.Add(dt.Rows[0]["Catalogue_DepartmentKey"].ToString().ToInt());
                    dt.Rows.RemoveAt(0);
                }
            }
        }

        
    }
}
